package lambda_expression.jdk;

import java.util.function.BinaryOperator;

/**
 * BinaryOperator
 * 接收两个T对象参数，返回一个T类型的结果
 */
public class BinaryOperatorTest {
    public static void main(String[] args) {
        BinaryOperator<String> fullNameBinaryOperator = (String firstName, String secondName) -> {
          return  firstName + "~" + secondName;
        };

        System.out.println(fullNameBinaryOperator.apply("Domson", "Jack"));
    }
}
